home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tk_OwnSelection(3) Tk Library Procedures
-
-
-
- _________________________________________________________________
-
- NAME
- Tk_OwnSelection - make a window the owner of the primary
- selection
-
- SYNOPSIS
- #include <tk.h>
-
- Tk_OwnSelection(_t_k_w_i_n, _p_r_o_c, _c_l_i_e_n_t_D_a_t_a)
-
- ARGUMENTS
- Tk_Window _t_k_w_i_n (in) Window that is to
- become new selection
- owner.
-
- Tk_LostSelProc *_p_r_o_c (in) Procedure to invoke
- when _t_k_w_i_n loses
- selection ownership
- later.
-
- ClientData _c_l_i_e_n_t_D_a_t_a (in) Arbitrary one-word
- value to pass to
- _p_r_o_c.
- _________________________________________________________________
-
-
- DESCRIPTION
- Tk_OwnSelection arranges for _t_k_w_i_n to become the new owner
- of the primary selection. After this call completes, future
- requests for the selection will be directed to handlers
- created for _t_k_w_i_n using Tk_CreateSelHandler. When _t_k_w_i_n
- eventually loses the selection ownership, _p_r_o_c will be
- invoked so that the window can clean itself up (e.g. by
- unhighlighting the selection). _P_r_o_c should have arguments
- and result that match the type Tk_LostSelProc:
- typedef void Tk_LostSelProc(ClientData _c_l_i_e_n_t_D_a_t_a);
- The _c_l_i_e_n_t_D_a_t_a parameter to _p_r_o_c is a copy of the _c_l_i_e_n_t_D_a_t_a
- argument given to Tk_OwnSelection, and is usually a pointer
- to a data structure containing application-specific informa-
- tion about _t_k_w_i_n.
-
- Once a window has become selection owner, it will remain
- owner until either the window is deleted or until some other
- window claims ownership. There is no way for a window to
- disavow ownership of the selection once it has received it.
-
-
- KEYWORDS
- own, selection owner
-
-
-
-
-
- Tk 1
-
-
-
-